package com.qianniu.napi.admin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 活动背景音乐
 * </p>
 *
 * @author chenxuebin
 * @since 2019-12-08
 */
@TableName("t_goods_music")
public class GoodsMusic extends Model<GoodsMusic> {

    private static final long serialVersionUID = 1L;

	@TableId(value="gid", type= IdType.INPUT)
	private Long gid;
	private Integer musicid;
	private Long mpid;
	private Date createtime;
	private Date modifytime;


	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Integer getMusicid() {
		return musicid;
	}

	public void setMusicid(Integer musicid) {
		this.musicid = musicid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	@Override
	protected Serializable pkVal() {
		return this.gid;
	}

	@Override
	public String toString() {
		return "GoodsMusic{" +
			"gid=" + gid +
			", musicid=" + musicid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
